package com.umeox.watch.moto.contact.model;

public class ContactDetail {
    private String contactName;
    private String contactNumber;
    private String contactPhotoUrl;
    private String contactPhotoPath;
    private String lastTimeContacted;
    /**
     * 联系人类型,
     * 0：管理员，1：关注者，2：设备好友，4：普通联系人
     */
    private int type = 0;
    /**
     * 当type为1，2时表示APP关注账号(邮箱或手机号码)，type为2时表示好友设备号
     */
    private String friendId;
    private boolean missed = false;
    private int missCount;
    private boolean inconming = false;
    private boolean outgoing = false;

    public ContactDetail(){

    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getFriendId() {
        return friendId;
    }

    public void setFriendId(String friendId) {
        this.friendId = friendId;
    }

    public boolean isAdmin() {
        return getType() == 0;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getContactPhotoUrl() {
        return contactPhotoUrl;
    }

    public void setContactPhotoUrl(String contactPhotoUrl) {
        this.contactPhotoUrl = contactPhotoUrl;
    }

    public String getContactPhotoPath() {
        return contactPhotoPath;
    }

    public void setContactPhotoPath(String contactPhotoPath) {
        this.contactPhotoPath = contactPhotoPath;
    }

    public String getLastTimeContacted() {
        return lastTimeContacted;
    }

    public void setLastTimeContacted(String lastTimeContacted) {
        this.lastTimeContacted = lastTimeContacted;
    }

    public boolean isMissed() {
        return missed;
    }

    public void setMissed(boolean missed) {
        this.missed = missed;
    }

    public boolean isInconming() {
        return inconming;
    }

    public void setInconming(boolean inconming) {
        this.inconming = inconming;
    }

    public boolean isOutgoing() {
        return outgoing;
    }

    public void setOutgoing(boolean outgoing) {
        this.outgoing = outgoing;
    }

    public int getMissCount() {
        return missCount;
    }

    public void setMissCount(int missCount) {
        this.missCount = missCount;
    }

    @Override
    public String toString() {
        return "ContactDetail{" +
                "contactName='" + contactName + '\'' +
                ", contactNumber='" + contactNumber + '\'' +
                ", contactPhotoUrl='" + contactPhotoUrl + '\'' +
                ", contactPhotoPath='" + contactPhotoPath + '\'' +
                ", lastTimeContacted='" + lastTimeContacted + '\'' +
                ", type=" + type +
                ", friendId='" + friendId + '\'' +
                ", missed=" + missed +
                ", missCount=" + missCount +
                ", inconming=" + inconming +
                ", outgoing=" + outgoing +
                '}';
    }
}
